package com.gm.wholesale.module.good.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class GoodDetailBean implements Serializable {
    @SerializedName("id")
    private long id;
    @SerializedName("name")
    private String name;
    @SerializedName("code")
    private String code;
    @SerializedName("category")
    private CategoryBean category;
    @SerializedName("supplier")
    private SupplierBean supplier;
    @SerializedName("type")
    private int type;
    @SerializedName("units")
    private List<GoodListBean.UnitsBean> units;
    @SerializedName("version")
    private int version;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public CategoryBean getCategory() {
        return category;
    }

    public void setCategory(CategoryBean category) {
        this.category = category;
    }

    public SupplierBean getSupplier() {
        return supplier;
    }

    public void setSupplier(SupplierBean supplier) {
        this.supplier = supplier;
    }


    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<GoodListBean.UnitsBean> getUnits() {
        return units;
    }

    public void setUnits(List<GoodListBean.UnitsBean> units) {
        this.units = units;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public static class CategoryBean implements Serializable{
        @SerializedName("id")
        private long id;
        @SerializedName("primaryName")
        private String primaryName;
        @SerializedName("secondaryName")
        private String secondaryName;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getPrimaryName() {
            return primaryName;
        }

        public void setPrimaryName(String primaryName) {
            this.primaryName = primaryName;
        }

        public String getSecondaryName() {
            return secondaryName;
        }

        public void setSecondaryName(String secondaryName) {
            this.secondaryName = secondaryName;
        }
    }

    public static class SupplierBean {
        @SerializedName("id")
        private long id;
        @SerializedName("name")
        private String name;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }


}
